/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const articleRouter = {
  path: '/article',
  component: Layout,
  name: '内容管理',
  meta: {
    title: '内容管理',
    subtitle:'内容',
    icon: 'menu_article'
  },
  children: [
    {
      path: '/article/list',
      component: () => import('@/views/article/list'),
      name: 'article-list',

      meta: {title: '文章管理' ,subtitle:'文章',icon:'menu_article',permissions:['article.query']}
    },
    {
      path: '/article/add',
      component: () => import('@/views/article/add'),
      name: 'article-add',
      meta: {title: '新增文章' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/article/edit',
      component: () => import('@/views/article/edit'),
      name: 'article-edit',
      meta: {title: '修改文章' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/enrollOrder/list',
      component: () => import('@/views/enrollOrder/list'),
      name: 'enrollOrder-list',
      meta: {title: '报名记录' ,subtitle:'报名',icon:'menu_order',permissions:['enrollOrder.query']},
    },
    {
      path: '/enrollOrder/details',
      component: () => import('@/views/enrollOrder/details'),
      name: 'enrollOrder-details',
      meta: {title: '报名详情' ,icon:'menu_order'},
      hidden: true
    },
    {
      path: '/sysMsg/list',
      component: () => import('@/views/sysMsg/list'),
      name: 'sysMsg-list',
      meta: { title: '消息管理' ,subtitle:'消息',icon: 'menu_product',permissions:['sysMsg.query']}
    },
    {
      path: '/sysMsg/add',
      component: () => import('@/views/sysMsg/add'),
      name: 'sysMsg-add',
      meta: { title: '新增消息' ,icon: 'menu_product'},
      hidden: true
    },
    {
      path: '/sysMsg/edit',
      component: () => import('@/views/sysMsg/edit'),
      name: 'sysMsg-edit',
      meta: { title: '修改消息' ,icon: 'menu_product'},
      hidden: true
    },
    {
      path: '/scenic/list',
      component: () => import('@/views/scenic/list'),
      name: 'scenic-list',
      meta: {title: '景区管理' ,subtitle:'景区',icon:'menu_article',permissions:['scenic.query']}
    },
    {
      path: '/scenic/add',
      component: () => import('@/views/scenic/add'),
      name: 'scenic-add',
      meta: {title: '新增景区' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/scenic/edit',
      component: () => import('@/views/scenic/edit'),
      name: 'scenic-edit',
      meta: {title: '修改景区资料' ,icon:'menu_article'},
      hidden: true
    },

    {
      path: '/variety/list',
      component: () => import('@/views/variety/list'),
      name: 'variety  -list',
      meta: {title: '菜谱管理' ,subtitle:'菜谱',icon:'menu_article',permissions:['variety.query']}
    },
    {
      path: '/variety/add',
      component: () => import('@/views/variety/add'),
      name: 'variety-add',
      meta: {title: '新增菜谱' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/variety/edit',
      component: () => import('@/views/variety/edit'),
      name: 'variety-edit',
      meta: {title: '修改菜谱资料' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/variety/recommend',
      component: () => import('@/views/variety/recommend'),
      name: 'variety-recommend',
      meta: {title: '推荐店铺' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/hotspot/list',
      component: () => import('@/views/hotspot/list'),
      name: 'hotspot-list',

      meta: {title: '热点管理' ,subtitle:'热点',icon:'menu_article',permissions:['hotspot.query']}
    },
    {
      path: '/hotspot/add',
      component: () => import('@/views/hotspot/add'),
      name: 'hotspot-add',
      meta: {title: '新增热点' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/hotspot/edit',
      component: () => import('@/views/hotspot/edit'),
      name: 'hotspot-edit',
      meta: {title: '修改热点' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/note/list',
      component: () => import('@/views/note/list'),
      name: 'note-list',

      meta: {title: '笔记管理' ,subtitle:'热点',icon:'menu_article',permissions:['note.query']}
    },
    {
      path: '/note/add',
      component: () => import('@/views/note/add'),
      name: 'note-add',
      meta: {title: '新增笔记' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/note/edit',
      component: () => import('@/views/note/edit'),
      name: 'note-edit',
      meta: {title: '修改笔记' ,icon:'menu_article'},
      hidden: true
    },

  
  ]
}
export default articleRouter
